// JavaScript Document

function HelloJavaScript() {
    BackendPost("awa")
}

function ElemFadeOut(elem) {
    const frame = document.getElementById(elem);
    frame.className = "FadeFrame fadeout";
}

function ElemFadeIn(elem) {
    const frame = document.getElementById(elem);
    if (frame.hidden)
        frame.hidden = false;
    frame.className = "FadeFrame fadein";
}

const BingUrl = 'https://cn.bing.com/HPImageArchive.aspx?format=js&idx=0&n=1&mkt=zh-CN';
function ChangeBackGround() {
    WebGet(BingUrl,
        function (recv) {
        alert(recv.responseText)
        },
        function (req) {
        alert("failed")
        });
}